
import type { MaSearchItem } from '@mineadmin/search'

export default function getSearchItems(): MaSearchItem[] {
  return [
    {
      prop: 'username',
      render: ({ formData }) => (
        console.log(formData, 'row'),
        <el-input placeholder="请输入"
          v-slots={{
            prepend: () => (
              <el-select v-model={formData.type} style={{ width: '120px' }}>
                <el-option label="用户ID" value="1" />
                <el-option label="用户账号" value="2" />
                <el-option label="用户名称" value="3" />
                <el-option label="用户姓名" value="4" />
                <el-option label="用户QQ" value="5" />
                <el-option label="用户手机号" value="6" />
                <el-option label="用户上级" value="7" />
                <el-option label="用户邮箱" value="8" />
              </el-select>
            ),
          }}
        />
      )
    },
    {
      label: '用户等级',
      prop: 'phone',
      render: ({ formData }) => (
        <el-select v-model={formData.phone}>
          <el-option label="测试1" value="account" />
          <el-option label="测试2" value="phone" />
        </el-select>
      ),
    },
    {
      label: '用户状态',
      prop: 'phone',
      render: ({ formData }) => (
        <el-select v-model={formData.phone}>
          <el-option label="全部" value="" />
          <el-option label="开通" value="1" />
          <el-option label="禁用" value="2" />
        </el-select>
      ),
    },
    {
      label: '用户权限',
      prop: 'phone',
      render: ({ formData }) => (
        <el-select v-model={formData.phone}>
          <el-option label="所有权限" value="" />
          <el-option label="自有商品发布权限" value="1" />
          <el-option label="平台对接权限" value="2" />
          <el-option label="充值卡充值权限" value="3" />
          <el-option label="一卡通权限" value="4" />
          <el-option label="跨系统对接权限" value="5" />
          <el-option label="支付宝大额支付权限" value="6" />
        </el-select>
      ),
    }
  ]
}
